import java.io.*;
/*
 *@Student 张策
 */
public class Text5 {
//    public static void main(String[] args) {
//        int coad;
//        int readlend;
//        String name="e:\\Text4.txt";
//        byte[]buf=new byte[8];
//        FileInputStream fileInputStream=null;
//        try {
//            fileInputStream = new FileInputStream(name);
////            while ((coad=fileInputStream.read())!=-1){//当读取到-1时说明已经读取结束
////                System.out.println((char)coad);
////            }
//            while ((readlend=fileInputStream.read(buf))!=-1){
//                //当读取到-1时说明已经读取结束,将读取的数据放到字符数组中
//                System.out.println(readlend);
//                System.out.println(new String(buf,0,readlend));
//            }
//        } catch (IOException e) {
//            e.printStackTrace();
//        } finally {
//            try {
//                fileInputStream.close();//关闭
//            } catch (IOException e) {
//                e.printStackTrace();
//            }
//        }
//    }
    public static void main(String[] args) throws IOException {
            BufferedReader bufferedReader = new BufferedReader(new FileReader("e:\\Text4.txt"));
            String s;
            while ((s=bufferedReader.readLine())!=null){
              System.out.println(s);
            }
    }
}
//public class Work2 {
//    public static void main(String[] args) throws Exception {
//        String name="e:\\Text1.txt";
//        BufferedReader bufferRead1 = new BufferedReader(new FileReader(name));
//        String s;
//        while (bufferRead1.readLine()!=null) {
//            s=bufferRead1.readLine();
//            System.out.println(s);
//        }
////        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(name,true));
////        bufferedWriter.write("zc666666666666666666666");                 //true追加
////        bufferedWriter.newLine();
////        bufferedWriter.write("zc666666666666666666666");
////        bufferedWriter.write("zc666666666666666666666");
////        bufferedWriter.close();
//    }
//}
